// 购物车模块路由
// 用户模块路由
const Router = require('koa-router')
// 引入控制器
const shoppingCartController = require('../../controllers/shoppingCartController')

let shoppingCartRouter = new Router()

// 获取购物车信息
shoppingCartRouter.post('/user/shoppingCart/getShoppingCart', shoppingCartController.GetShoppingCart)
// 插入购物车信息
shoppingCartRouter.post('/user/shoppingCart/addShoppingCart', shoppingCartController.AddShoppingCart)
// 删除购物车信息
shoppingCartRouter.post('/user/shoppingCart/deleteShoppingCart', shoppingCartController.DeleteShoppingCart)
// 更新购物车商品数量
shoppingCartRouter.post('/user/shoppingCart/updateShoppingCart', shoppingCartController.UpdateShoppingCart)

module.exports = shoppingCartRouter
